//
//  LeaderboardViewController.m
//  Molian
//
//  Created by 胡津 on 15/3/19.
//  Copyright (c) 2015年 xiaocan. All rights reserved.
//

#import "LeaderboardViewController.h"

@interface LeaderboardViewController ()

@end

@implementation LeaderboardViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"我要上榜";
    self.view.backgroundColor = APPCOLORBACKGROUNDCOLOR(1);
    
    NSArray *titleArr = @[@"资料完整度 100%",@"被喜欢数超过 100",@"等级不低于Lv2"];
    for (int i=0; i<3; i++) {
        UIView *Line = [[UIView alloc]initWithFrame:CGRectMake((DeviceWidth-200)/2, 60*i+250, 0, 40)];
        Line.backgroundColor = APPCOLOR(1);
        Line.tag = i + 100;
        [Line.layer setCornerRadius:20];
        [self.view addSubview:Line];
        
        UILabel *promptLabel = [[UILabel alloc]initWithFrame:CGRectMake((DeviceWidth-200)/2, 60*i+250, 200, 40)];
        promptLabel.backgroundColor = [UIColor clearColor];
        promptLabel.text = titleArr[i];
        promptLabel.textColor = [UIColor whiteColor];
        [promptLabel.layer setBorderColor:[[UIColor paperColorLightBlue500] colorWithAlphaComponent:1].CGColor];
        [promptLabel.layer setBorderWidth:0.5];
        [promptLabel.layer setCornerRadius:20];
        promptLabel.textAlignment = NSTextAlignmentCenter;
        [self.view addSubview:promptLabel];
    }
    
    //选择按钮
    BFPaperButton *Application = [[BFPaperButton alloc]init];
    Application.frame = CGRectMake(40, DeviceHeight-200, DeviceWidth-80, 40);
    [Application setTitle:@"立即申请" forState:UIControlStateNormal];
    [Application setBackgroundColor:UIColorFromRGB(0xFE6A66)];
    [Application setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [Application.layer setBorderColor:[UIColorFromRGB(0xFE6A66) colorWithAlphaComponent:1].CGColor];
    [Application.layer setBorderWidth:1];
    Application.layer.masksToBounds = YES;//开启圆角
    [Application.layer setCornerRadius:CGRectGetHeight([Application bounds]) / 2];
    Application.titleLabel.font = [UIFont fontWithName:FontName size:14];
    //        [chooseBtn addTarget:self action:@selector(selectApplier) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:Application];
    
    
    
    UIView *Line1 = (UIView *)[self.view viewWithTag:100];
    UIView *Line2 = (UIView *)[self.view viewWithTag:101];
    UIView *Line3 = (UIView *)[self.view viewWithTag:102];
    
    
    [Utils animationMobileTimer:4 View:Line1 Rect:CGRectMake((DeviceWidth-200)/2, 60*0+250, 200, 40)];
    [Utils animationMobileTimer:4 View:Line2 Rect:CGRectMake((DeviceWidth-200)/2, 60*1+250, 130, 40)];
    [Utils animationMobileTimer:4 View:Line3 Rect:CGRectMake((DeviceWidth-200)/2, 60*2+250, 190, 40)];
    


}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    if ([self isViewLoaded]&&!self.view.window) {
        self.view = nil;
    }
    // Dispose of any resources that can be recreated.
}

@end
